package com.example.myapplication.view;

import android.content.Context;
import androidx.appcompat.widget.AppCompatTextView;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.myapplication.R;

/**
 * @author: rongfeng
 * @date: 2020/10/10
 * @description 头条女神活动跑道
 */
public class QueenTrackView extends RelativeLayout {
    private View mView;
    private ImageView img_queen_user_head;
    private TextView tv_queen_user_name;
    private AppCompatTextView tv_queen_hot_value;

    public QueenTrackView(Context context, AttributeSet attrs) {
        super(context, attrs);
        mView = LayoutInflater.from(context).inflate(R.layout.view_queen_track, this);
        img_queen_user_head = mView.findViewById(R.id.img_queen_user_head);
        tv_queen_user_name = mView.findViewById(R.id.tv_queen_user_name);
        tv_queen_hot_value = mView.findViewById(R.id.tv_queen_hot_value);
    }


    public void setData(){
        tv_queen_user_name.setText("哈哈哈哈哈哈哈哈");
        tv_queen_hot_value.setText("123456789");
    }

}
